-
Home
-
UpsellWP – WooCommerce Upsell and Related Products Offers
-
2.2.2 (latest)
-
Code
-
Classes
- NOC
| Total Complexity |
150 |
| Dependencies |
11 |
| Dependents |
1 |
| Total lines |
672 |
| Lines of code |
426 |
| Logical lines of code |
262 |
| Comment lines |
172 |
| Methods |
26 |
| Properties |
0 |
Methods 26
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| init() |
C |
35 |
27 |
77 |
| createCoupon() |
B |
39 |
17 |
56 |
| getActionsHtml() |
A |
45 |
13 |
40 |
| getMatchedCampaign() |
A |
52 |
11 |
23 |
| getCouponMessage() |
A |
52 |
8 |
22 |
| isValidCoupon() |
A |
54 |
8 |
19 |
| isValidOrder() |
A |
57 |
8 |
16 |
| getExpireDays() |
S |
57 |
7 |
14 |
| getUsageCountBasedOnCurrentUser() |
S |
55 |
6 |
18 |
| updateCouponData() |
S |
57 |
6 |
16 |
| expireCoupon() |
S |
57 |
5 |
16 |
| performAction() |
S |
63 |
5 |
10 |
| applyCouponByUrl() |
S |
64 |
5 |
9 |
| getCouponUrl() |
S |
71 |
3 |
4 |
| getOrder() |
S |
66 |
3 |
8 |
| processOrderCoupon() |
S |
64 |
3 |
10 |
| processCampaignCoupon() |
S |
61 |
2 |
12 |
| showActions() |
S |
72 |
2 |
5 |
| checkCouponIsValid() |
S |
79 |
2 |
3 |
| generateCouponCode() |
S |
68 |
2 |
7 |
| loadCampaignView() |
S |
71 |
2 |
5 |
| isOrderStatusMatchedWithCampaignFailedStatus() |
S |
72 |
1 |
4 |
| getAllCampaigns() |
S |
64 |
1 |
9 |
| getDisplayLocations() |
S |
64 |
1 |
9 |
| getDisplayLocationsOnEmail() |
S |
67 |
1 |
7 |
| getDisplayLocationsOnMyAccountPage() |
S |
67 |
1 |
7 |